diff options
Diffstat (limited to 'examples/with-content/src/pages/blog/[...slug].astro')
-rw-r--r-- | examples/with-content/src/pages/blog/[...slug].astro | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/with-content/src/pages/blog/[...slug].astro b/examples/with-content/src/pages/blog/[...slug].astro index c8e86c487..0d656a153 100644 --- a/examples/with-content/src/pages/blog/[...slug].astro +++ b/examples/with-content/src/pages/blog/[...slug].astro @@ -1,10 +1,10 @@ --- -import { CollectionEntry, getCollection } from "astro:content"; -import BlogPost from "../../layouts/BlogPost.astro"; +import { CollectionEntry, getCollection } from 'astro:content'; +import BlogPost from '../../layouts/BlogPost.astro'; export async function getStaticPaths() { const posts = await getCollection('blog'); - return posts.map(post => ({ + return posts.map((post) => ({ params: { slug: post.slug }, props: post, })); |